package com.mytijian.utils;

import java.util.ArrayList;
import java.util.List;

public class Lists {
	
	public static <T> ArrayList<T> newArrayList() {
		return new ArrayList<>();
	}

	@SafeVarargs
	public static <T> ArrayList<T> newArrayList(T... elems) {
		ArrayList<T> result =new ArrayList<>();
		if (elems!=null) {
			for (T t : elems) {
				result.add(t);
			}
		}
		return result;
	}
	
	public static boolean isEmpty(List<?> list) {
		return list==null || list.isEmpty();
	}
}
